package com.aiti.ai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 标准行业大类，类目层级实体
 */
@ApiModel("类目实体")
@TableName("category_info")
@Data
public class CategoryInfoEntity {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("主键，自增")
    private Integer id;

    @TableField("category_id")
    @ApiModelProperty(value = "类目id", example = "06")
    private String categoryId;

    @TableField("category_name")
    @ApiModelProperty(value = "类目名称", example = "服饰制造")
    private String categoryName;

    @TableField("parent_category_id")
    @ApiModelProperty(value = "上级类目名称", example = "石油和天然气开采业")
    private String parentCategoryId;

    @TableField("category_path")
    @ApiModelProperty(value = "类目id层级", example = "06,061")
    private String categoryPath;

    @TableField("leaf")
    @ApiModelProperty(value = "是否是叶子类目, 1：是，0：不是", example = "1")
    private Integer leaf;

    @TableField("top_category_id")
    @ApiModelProperty(value = "一级类目id")
    private String topCategoryId;

}
